import brian_no_units
from brian.tools.datamanager import *
from brian.tools.taskfarm import *

from brian.globalprefs import *
set_global_preferences(usecodegenweave=True)

#from playdoh import *
from Human import *
#from brian.tools.datamanager import *
#from brian.tools.taskfarm import *

if __name__ == '__main__':
    
    
    lst = list()
    lst.append((30*Hz,2,0.7,2.5,[],[],10*second,'CPG2MN = 0, j=2, l = 2.5'))
    lst.append((30*Hz,2,0.7,3,[],[],10*second,'CPG2MN = 0, j=2, l = 3'))
    lst.append((30*Hz,2,0.7,3.5,[],[],10*second,'CPG2MN = 0, j=2, l = 3.5'))
    lst.append((30*Hz,2,0.7,4,[],[],10*second,'CPG2MN = 0, j=2, l = 4'))
    
    dataman = DataManager('GK')
    run_tasks(dataman, human, lst)
    
    #Net_Rybak = human()
    
    #rybak.showarraysmem(Net_Rybak.Tracelist,'MN')
    #Net_Rybak.__call__(30*Hz,0,0.7,[],[],10*second,'CPG2MN = 0, wo aff2mn, ')
    #Net_Rybak.__call__(30*Hz,1,0.7,[],[],10*second,'CPG2MN = 0, w aff2mn, ')
    
    #Net_Rybak.__call__(DUR=10*second,display=True,infrq=30*Hz,j=0,k=0.7,filename='CPG2MN = 0, wo aff2mn, ')
    #Net_Rybak.__call__(DUR=10*second,display=True,infrq=30*Hz,j=1,k=0.7,filename='CPG2MN = 0, w aff2mn, ')
    #Net_Rybak.__call__([],[],DUR=5*second,display=True)
    #Net_Rybak.__call__(DUR=0.2*second,display=False,infrq=30*Hz)
    #Net_Rybak.__call__(DUR=0.2*second,display=False,infrq=30*Hz)
    